Skip to content

Conversation

cristianoc
Copy link
Collaborator

@cristianoc cristianoc commented Jul 11, 2022

Add support for async/await.
This was taken from cristianoc/rescript-compiler-experiments#1

  • questions on best way to implement the type check for nested promises
  • surface syntax from the syntax repo
  • tests
  • docs

@@ -1864,7 +1864,34 @@ and type_expect ?in_function ?recarg env sexp ty_expected =
type_expect_ ?in_function ?recarg env sexp ty_expected
)
in
Cmt_format.set_saved_types
let () =
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is the best place to perform this check? Performance?

@cristianoc cristianoc added this to the v10.1 milestone Jul 11, 2022
@cristianoc cristianoc force-pushed the async-await-support branch from 5210e3c to 8a38fb4 Compare July 18, 2022 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant